const sequelize = require('../config/sequelize')
const Sequelize = require('sequelize')

const Reading = sequelize.define('reading', {
    vaild: {
        type: Sequelize.BIGINT,
        field: 'valid'
    },
    readingsId: {
        type: Sequelize.BIGINT,
        field: 'readings_id'
    },
    userId: {
        type: Sequelize.BIGINT,
        field: 'user_id'
    },
    article: {
        type: Sequelize.BIGINT,
        field: 'article'
    }
})

module.exports = Reading